﻿<%@ page language="java" pageEncoding="UTF-8"%> 
<%@ page import="java.util.*"%> 
<%@ page import="java.text.*"%> 
<%@ page isELIgnored="false"%>
  <%@page import="com.yuxi.Service.Impl.UserServiceImpl"%>
<%@page import="com.yuxi.Entity.PowerUser"%>
<%@page import="com.yuxi.spring.jbpm.Util.SpringContextUtils"%>
<%@page import="com.yuxi.Service.UserService"%>
<%@page import="com.yuxi.Entity.PowerRole"%>
<%@page import="com.yuxi.view.UserPowerView"%>
 <%@page import="com.yuxi.Entity.PrisonStructure"%>

 
 <% 
 PrisonStructure powerUser=new PrisonStructure();
 PowerRole powerUsers=new PowerRole();
  
%>
<%  
  try{
    UserPowerView user1=(UserPowerView)request.getSession().getAttribute("userPowerView");
    if(user1==null||user1.getPowerRole()==null){
      UserService curus=(UserService)SpringContextUtils.getBeanByClass(UserService.class);
      user1=curus.curLoginUserPowerView(request.getSession());
    }   
    if(user1==null||user1.getPowerRole()==null){      
      response.sendRedirect("/yuxi/model/home/index.jsp?menuId=0");
    }else{
      powerUser=user1.getMaxStructure();
      powerUsers=user1.getPowerRole();
    }
  }catch(Exception e ){
    response.sendRedirect("/yuxi/model/home/index.jsp?menuId=0");
  } 
%>


  <script type="text/javascript" src="../../fream/jquery-1.9.1.min.js"></script> 
 <script type="text/javascript" src="../../fream/bootstrap/js/respond.min.js"></script>
 <script type="text/javascript" src="../../fream/excanvas.js"></script>
 <script type="text/javascript" src="../../js/placeholder.js"></script>
  <script type="text/javascript" src="../../js/order.js"></script>

  <link rel="stylesheet" type="text/css" href="../../fream/bootstrap/css/bootstrap.css">
  <link rel="stylesheet" type="text/css" href="../../css/style.css">
 <script type="text/javascript" src="../../js/select2.min.js"></script>
 <link rel="stylesheet" type="text/css" href="../../css/select2.min.css">
  <link rel="stylesheet" type="text/css" href="../../css/addInfo.css">
 
  <link href="../../fream/datepicker/css/datepicker.css" rel="stylesheet" media="screen">
  <link href="../../fream/jquery-ui-1.12.0.custom/jquery-ui.min.css" rel="stylesheet" media="screen">
  <link rel="stylesheet" href="../../fream/treeView/jquery.tree-multiselect.min.css">
  <link rel="stylesheet" type="text/css" href="../../fream/kindeditor/skins/default.css" type="text/css">
  <link href="../../fream/vedio/video-js.css" rel="stylesheet" type="text/css">
<!--   <link href="../../fream/wysi/index.css" rel="stylesheet" type="text/css"> -->
  <link rel="stylesheet" type="text/css" href="../../css/flowChart.css"/>
  <link rel="stylesheet" type="text/css" href="../../css/bootstrap-year-calendar.min.css">
  <link rel="stylesheet" type="text/css" href="../../css/calendar.css">
  <link rel="stylesheet" type="text/css" href="../../css/bootstrap-treeview.css">
    <script src="../../script/treeTable/jquery.treeTable.js" type="text/javascript"></script><!-- //树形列表 -->    
<nav class="navbar navbar-default navbar-static-top " style="height:50px;margin: 0px;">
 <!--  <div class="">
   
 </div> -->
  <div class="m_nav sec_nav_header">
    <div class="m_nav_logo">

      <span class="navbar-brand" >
        <img src="/yuxi/images/log1.png" alt="" class="logoone">
        <img src="/yuxi/images/user.png" alt="" class="logotwo">
      </span>
    </div>
    <div class="sec_nav_footer">
      <ul class=" nav-flag-left">
       <li>
       <span class="glyphicon glyphicon-user nav-userInfo" data-userId="${userView.userId}" style=""> ${userView.userName}[${userView.userAccount  }]  </span></li>
       <li>职务:${userView.positionName}</li>
        <li style="display: none;" id="maxStructureId"><%=powerUser.getId()%></li>
        
      </ul>
      <ul class="nav-flag-right">
       <li style="margin-right: 15px;"><a href="javascript:;" id="clock">
          
        </a></li>
        <li class="dropdown" id="titleFlag">
          <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false" style="color:#7C84EA;"><span class="glyphicon glyphicon-user" style="color:#7C84EA;"></span>  个人中心 </a>
          <ul class="dropdown-menu" id="lage">
           
            <li><a href="/yuxi/model/personalCenter/personDetail.jsp">个人资料</a></li>
            <li><a href="/yuxi/model/personalCenter/modifyPassword.jsp">修改密码</a></li>
            <li role="separator" class="divider"></li>          
            <li role="separator" class="divider"></li>
            <li><a href="/yuxi/login.jsp" id="quit">注销</a></li>
          </ul>
        </li>
      </ul>
    </div>
  <!-- /.navbar-collapse -->
  </div><!-- /.container-fluid -->
 
</nav>
<!-- 树形 -->

<script type="text/javascript" src="../../fream/bootstrap/js/html5.js"></script>

<script type="text/javascript" src="../../js/treeView.js"></script>
<script type="text/javascript" src="../../js/requestSearch.js"></script>



<script type="text/javascript" src="../../js/YuXi.js"></script>
<script type="text/javascript" src="../../js/appendix.js"></script>
<script type="text/javascript" src="../../js/TOPsouce.js"></script>
<script type="text/javascript" src="../../js/placeholder.js"></script>
<script type="text/javascript" src="../../js/graded.js"></script>
<script type="text/javascript" src="../../js/timestamp.js"></script>
<script type="text/javascript" src="../../js/loadding.js"></script>
<script type="text/javascript" src="../../js/util.js"></script>

<script type="text/javascript" src="../../js/datepicker.js"></script>
<script type="text/javascript" src="../../js/myTool.js"></script>
<script type="text/javascript" src="../../js/fenkouuSourceUpdata.js"></script>
<script type="text/javascript" src="../../js/regestWri.js"></script>
<script type="text/javascript" src="../../js/WriQuest.js"></script>
<script type="text/javascript" src="../../js/detailWri.js"></script>
<script type="text/javascript" src="../../js/getTime.js"></script>
<script type="text/javascript" src="../../js/PageSelect.js"></script>
<script type="text/javascript" src="../../js/selectAll.js"></script>
<!-- <script type="text/javascript" src="../../js/flowChart.js"></script> -->
<!-- <script type="text/javascript">
  $(function(){
    
    $('input, textarea').placeholder();
  })
</script>-->
<!-- 
 <script type="text/javascript">
window.jq=$;
</script> -->
<!--<script type="text/javascript" src="../../fream/kindeditor/kindeditor-min.js"></script>
<script>    
    KE.show({
         id : 'test'
      });
</script>
<script type="text/javascript" src="../../fream/jquery-ui-1.12.0.custom/jquery-ui.min.js"></script>
<script type="text/javascript" src="../../fream/bootstrap-treeview.js"></script>
<script type="text/javascript" src="../../fream/highcharts/highcharts.js"></script>
<script type="text/javascript" src="../../fream/bootstrap/js/bootstrap.js"></script>-->
<script type="text/javascript" src="../../fream/jquery.cookie.js"></script> 
<script type="text/javascript" src="../../fream/bootstrap/js/bootstrap.js"></script>
<!-- 日历控件 -->

<script type="text/javascript" src="../../fream/datepicker/js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="../../fream/jquery-ui-1.12.0.custom/jquery-ui.min.js"></script>

<script type="text/javascript" src="../../fream/dateYear/bootstrap-year-calendar.min.js"></script>
<!-- <script type="text/javascript" src="../../fream/dateYear/bootstrap-popover.js"></script>  -->



<!-- 当前时间js代码 -->
<script type="text/javascript" src="../../js/datetime.js"></script>
<!-- /附件视频播放插件 -->
<script src="../../fream/vedio/video.js"></script>
<!-- //编辑器 -->
<script type="text/javascript">
    $(function(){
      $("#titleFlag").click(function(){
          $("#lage").toggle();
      })
    })



</script>
<script type="text/javascript">
$("#quit").click(function(){
	
	var url="quitLogin.do";//获取用户信息
		YuXi.util.get(url,"null",function(data){
			if(data.status){
				window.location.href = '/yuxi/login.jsp';
				}
				
		},function(){
			
		})
});
  // 移动了就更新最近一次移动的时间。
  document.onmousemove = function(){
  window.lastMove = new Date().getTime();
  };
  window.lockTime = 15*60*1000;//15分钟没动就锁定
  window.lastMove = new Date().getTime();//最近一次移动时间
  window.setInterval(function(){//每1秒钟检查一次。
  var now = new Date().getTime();
  // 如果超时了
  if( now - lastMove > lockTime ){
    ////console.log("锁定");
  }
  }, 1000);

</script>           
<script type="text/javascript" src="../../fream/treeView/jquery.tree-multiselect.js"></script>
<script type="text/javascript" src="../../fream/ajaxfileupload.js"></script>

<script type="text/javascript" src="../../js/setTabIndex.js"></script>
<script type="text/javascript" src="../../js/JQtittle.js"></script>
<script type="text/javascript" src="../../js/recursionSource.js"></script>

